package com.bishe.demo.core.controller;

import com.bishe.demo.common.CommonResp;
import com.bishe.demo.core.entity.Manager;
import com.bishe.demo.core.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.smartcardio.CommandAPDU;

@Api(tags = "测试")
@RestController
@RequestMapping("/manager")
public class TestController {
    @Autowired
    private TestService testService;

    @ApiOperation(value = "测试方法")
    @GetMapping("/test")
    public CommonResp<Manager> test(){
        CommonResp<Manager> commonResp=new CommonResp<>();
        Manager manager =
        testService.getById("1");
//        testService.getManagerByID("1");
        commonResp.setContent(manager);
        commonResp.setMessage("aaaa");
        commonResp.setSuccess(true);
        return commonResp;
    }
}
